package com.zfast.forge.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel
public class Page<T> implements Serializable {
    @ApiModelProperty(name = "num", notes = "页号")
    @Builder.Default
    private int num = 1;

    @ApiModelProperty(name = "size", notes = "分页大小")
    @Builder.Default
    private int size = 20;

    @ApiModelProperty(name = "data", notes = "查询对象")
    private T data;
}
